
/**
 * @author dumeng
 */
import request from '@/utils/request'

/**
 * 获取分类树形列表
 */
export function fetchList(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/courseInfo/getCourseTag',
    method: 'POST',
    data
  })
}
/**
 * 分类新增
 */
export function insert(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/winningInfo/insert',
    method: 'POST',
    data
  })
}
/**
 * 分类编辑
 */
export function update(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/winningInfo/update',
    method: 'POST',
    data
  })
}
/**
 * 分类状态修改
 */
export function updateStatus(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/winningInfo/updateStatus',
    method: 'POST',
    data
  })
}
/**
 * 分类删除
 */
export function del(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/winningInfo/deleteById',
    method: 'POST',
    data
  })
}

/**
 * 分类移动  上移：SY  下移：XY
 */
export function move(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/winningInfo/moveSort',
    method: 'POST',
    data
  })
}

